import { IDataType } from '@/service/login/type'
import lylrequest from '../../index'

enum DashboardAPI {
  categoryGoodsCount = '/goods/category/count',
  categoryGoodsSale = '/goods/category/sale',
  categoryGoodsFavor = '/goods/category/favor',
  addressGoodsSale = '/goods/address/sale'
}
export function getCategoryCount() {
  return lylrequest.get<IDataType>({
    url: DashboardAPI.categoryGoodsCount
  })
}
export function getCategorySale() {
  return lylrequest.get<IDataType>({
    url: DashboardAPI.categoryGoodsSale
  })
}
export function getCategoryFavor() {
  return lylrequest.get<IDataType>({
    url: DashboardAPI.categoryGoodsFavor
  })
}
export function getAddressGoodsSale() {
  return lylrequest.get<IDataType>({
    url: DashboardAPI.addressGoodsSale
  })
}
